<?php
/**
 * Author: hades
 * DateTime: 2020/4/20 14:31
 */

namespace App\Validate;


class DocValidate extends Validate {

    public function add() {
        return [
            'type' => 'required|in:1,2,3',
            'title' => 'required|max:50',
            'content' => 'required',
        ];
    }

    public function edit() {
        return [
            'title' => 'required|max:50',
            'content' => 'required',
        ];
    }
}
